#include "led.h"
#include "delay.h"
#include "sys.h"
#include "beep.h"
#include "key.h"
#include "iwdg.h"

int main()
{
	Stm32_Clock_Init(9);
	delay_init(72);
	ledinit();
	beepinit();
	keyinit();
	iwdginit(4,625);
	delay_ms(500);
	led0=0;
	while(1)
	{
	if(keyscan(0)==3)iwdgfeed();
	}
	delay_ms(10);
}
